package org.jeecg.modules.handler;


import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.util.RedisUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


/**
 * @Description: 获取微信平台 WXAccessToken 定时任务
 * @Author: yfkj
 * @Date:   2023-01-05
 * @Version: V1.0
 */
@Component
@Slf4j
public class WXAccessTokenJobHandler {

    @Autowired
    private RedisUtil redisUtil;


    /**
     * 获取ACCESS_TOKEN
     * 官方文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/access-token/auth.getAccessToken.html
     * <p>
     * 需要正确的 appid  和 secret  查看自己的微信开放平台
     */
    @XxlJob(value = "getAccessTokenJob")
    public ReturnT<String> getAccessTokenJobHandler(String params) {

        return ReturnT.SUCCESS;
    }


}
